<?php
/**
 * Created by PhpStorm.
 * BuyUser: u
 * Date: 2018/11/8
 * Time: 11:36
 */
/***********************************  Logic组件  ***********************************************/
//添加组件

//测试组件
Yii::$container->set('common\\logics\\test\\ITest','common\\logics\\test\\TestLogic');
Yii::$container->set('testService','common\\logics\\test\\ITest');

Yii::$container->set('common\\sources\\read\\test\\ITestAccess','common\\sources\\read\\test\\TestAccess');
Yii::$container->set('RTestAccess','common\\sources\\read\\test\\ITestAccess');

Yii::$container->set('common\\sources\\write\\test\\ITestAccess', 'common\\sources\\write\\test\\TestAccess');
Yii::$container->set('WTestAccess','common\\sources\\write\\test\\ITestAccess');

//买手用户注册登陆组件
Yii::$container->set('BuyUserService','common\\logics\\buyuser\\IBuyUser');
Yii::$container->set('common\\logics\\buyuser\\IBuyUser','common\\logics\\buyuser\\BuyUserLogic');

Yii::$container->set('RBuyUserAccess','common\\sources\\read\\buyuser\\IBuyUserAccess');
Yii::$container->set('common\\sources\\read\\buyuser\\IBuyUserAccess','common\\sources\\read\\buyuser\\BuyUserAccess');

Yii::$container->set('WBuyUserAccess','common\\sources\\write\\buyuser\\IBuyUserAccess');
Yii::$container->set('common\\sources\\write\\buyuser\\IBuyUserAccess', 'common\\sources\\write\\buyuser\\BuyUserAccess');
//买手用户中心
Yii::$container->set('RBuyUserAcountAccess','common\\sources\\read\\buyuser\\IBuyUserAcountAccess');
Yii::$container->set('common\\sources\\read\\buyuser\\IBuyUserAcountAccess','common\\sources\\read\\buyuser\\BuyUserAcountAccess');

Yii::$container->set("WBuyUserAcountAccess","common\\sources\\write\\buyuser\\IBuyUserAcountAccess");
Yii::$container->set("common\\sources\\write\\buyuser\\IBuyUserAcountAccess","common\\sources\\write\\buyuser\\BuyUserAcountAccess");

//绑定淘宝天猫账号
Yii::$container->set('TaoBaoService', 'common\\logics\\taobao\\ITaoBao');
Yii::$container->set('common\\logics\\taobao\\ITaoBao','common\\logics\\taobao\\TaoBaoLogic');

Yii::$container->set('WTaoBaoAccess', 'common\\sources\\write\\taobao\\ITaoBaoAccess');
Yii::$container->set('common\\sources\\write\\taobao\\ITaoBaoAccess','common\\sources\\write\\taobao\\TaoBaoAccess');

Yii::$container->set("RTaoBaoAccess","common\\sources\\read\\taobao\\ITaoBaoAccess");
Yii::$container->set("common\\sources\\read\\taobao\\ITaoBaoAccess","common\\sources\\read\\taobao\\TaoBaoAccess");

//图片上传组件
Yii::$container->set('UploadService','common\\logics\\upload\\IUpload');
Yii::$container->set('common\\logics\\upload\\IUpload','common\\logics\\upload\\UploadLogic');

//地区联动组件
Yii::$container->set('AreaService','common\\logics\\area\\IArea');
Yii::$container->set('common\\logics\\area\\IArea','common\\logics\\area\\AreaLogic');

Yii::$container->set('RAreaAccess','common\\sources\\read\\area\\IAreaAccess');
Yii::$container->set('common\\sources\\read\\area\\IAreaAccess','common\\sources\\read\\area\\AreaAccess');

//公告
Yii::$container->set("NoticeService","common\\logics\\notice\\INotice");
Yii::$container->set("common\\logics\\notice\\INotice","common\\logics\\notice\\NoticeLogic");

Yii::$container->set("RNoticeAccess","common\\sources\\read\\notice\\INoticeAccess");
Yii::$container->set("common\\sources\\read\\notice\\INoticeAccess","common\\sources\\read\\notice\\NoticeAccess");

//银行卡四要素

Yii::$container->set('common\\logics\\bank\\IBank','common\\logics\\bank\\BankLogic');
Yii::$container->set('BankService','common\\logics\\bank\\IBank');

Yii::$container->set('RBankAccess','common\\sources\\read\\bank\\IBankAccess');
Yii::$container->set('common\\sources\\read\\bank\\IBankAccess','common\\sources\\read\\bank\\BankAccess');

Yii::$container->set('WBankAccess','common\\sources\\write\\bank\\IBankAccess');
Yii::$container->set('common\\sources\\write\\bank\\IBankAccess', 'common\\sources\\write\\bank\\BankAccess');

//短信
Yii::$container->set('MesgService','common\\logics\\message\\IMessage');
Yii::$container->set('common\\logics\\message\\IMessage','common\\logics\\message\\MesgLogic');

Yii::$container->set('RMesgAccess','common\\sources\\read\\message\\IMesgAccess');
Yii::$container->set('common\\sources\\read\\message\\IMesgAccess','common\\sources\\read\\message\\MesgAccess');

Yii::$container->set('WMesgAccess','common\\sources\\write\\message\\IMesgAccess');
Yii::$container->set('common\\sources\\write\\message\\IMesgAccess', 'common\\sources\\write\\message\\MesgAccess');

/***    买手完成任务流程  *********/
Yii::$container->set("TaskCommodService","common\\logics\\taskcommod\\ITaskCommod");
Yii::$container->set("common\\logics\\taskcommod\\ITaskCommod","common\\logics\\taskcommod\\TaskCommodLogic");

Yii::$container->set("RTaskCommodAccess","common\\sources\\read\\taskcommod\\ITaskCommodAccess");
Yii::$container->set("common\\sources\\read\\taskcommod\\ITaskCommodAccess","common\\sources\\read\\taskcommod\\TaskCommodAccess");

Yii::$container->set("WTaskCommodAccess","common\\sources\\write\\taskcommod\\ITaskCommodAccess");
Yii::$container->set("common\\sources\\write\\taskcommod\\ITaskCommodAccess","common\\sources\\write\\taskcommod\\TaskCommodAccess");

/** 买手接任务***/
Yii::$container->set("RTaskOrderAccess","common\\sources\\read\\taskorder\\ITaskOrderAccess");
Yii::$container->set("common\\sources\\read\\taskorder\\ITaskOrderAccess","common\\sources\\read\\taskorder\\TaskOrderAccess");

Yii::$container->set("WTaskOrderAccess","common\\sources\\write\\taskorder\\ITaskOrderAccess");
Yii::$container->set("common\\sources\\write\\taskorder\\ITaskOrderAccess","common\\sources\\write\\taskorder\\TaskOrderAccess");

/** 增值服务 ****/
Yii::$container->set("ValueService","common\\logics\\valueservice\\IValueService");
Yii::$container->set("common\\logics\\valueservice\\IValueService","common\\logics\\valueservice\\ValueServiceLogic");

Yii::$container->set("RValueServiceAccess","common\\sources\\read\\valueservice\\IValueServiceAccess");
Yii::$container->set("common\\sources\\read\\valueservice\\IValueServiceAccess","common\\sources\\read\\valueservice\\ValueServiceAccess");

Yii::$container->set("WValueServiceAccess","common\\sources\\write\\valueservice\\IValueServiceAccess");
Yii::$container->set("common\\sources\\write\\valueservice\\IValueServiceAccess","common\\sources\\write\\valueservice\\ValueServiceAccess");

Yii::$container->set("TaskOrderService","common\\logics\\taskorder\\ITaskOrder");
Yii::$container->set("common\\logics\\taskorder\\ITaskOrder","common\\logics\\taskorder\\TaskOrderLogic");

Yii::$container->set("RShopAccess","common\\sources\\read\\shop\\IShopAccess");
Yii::$container->set("common\\sources\\read\\shop\\IShopAccess","common\\sources\\read\\shop\\ShopAccess");


Yii::$container->set("WTaskCommodKeywordAccess","common\\sources\\write\\taskcommodkeywords\\ITaskCommodKeywordAccess");
Yii::$container->set("common\\sources\\write\\taskcommodkeywords\\ITaskCommodKeywordAccess","common\\sources\\write\\taskcommodkeywords\\TaskCommodKeywordAccess");

Yii::$container->set("RTaskCommodKeywordAccess","common\\sources\\read\\taskcommodkeywords\\ITaskCommodKeywordAccess");
Yii::$container->set("common\\sources\\read\\taskcommodkeywords\\ITaskCommodKeywordAccess","common\\sources\\read\\taskcommodkeywords\\TaskCommodKeywordAccess");

/** 禁止地址 ***/
Yii::$container->set("RValueServiceProhibitAccess","common\\sources\\read\\valueserviceprohibit\\IValueServiceProhibitAccess");
Yii::$container->set("common\\sources\\read\\valueserviceprohibit\\IValueServiceProhibitAccess","common\\sources\\read\\valueserviceprohibit\\ValueServiceProhibitAccess");

/** 图文任务id **/
Yii::$container->set("RTaskShopImageAccess","common\\sources\\read\\taskshopimage\\ITaskShopImageAccess");
Yii::$container->set("common\\sources\\read\\taskshopimage\\ITaskShopImageAccess","common\\sources\\read\\taskshopimage\\TaskShopImageAccess");

Yii::$container->set("WTaskShopImageAccess","common\\sources\\write\\taskshopimage\\ITaskShopImageAccess");
Yii::$container->set("common\\sources\\write\\taskshopimage\\ITaskShopImageAccess","common\\sources\\write\\taskshopimage\\TaskShopImageAccess");

/** 自定义聊天 **/
Yii::$container->set("RPraiseKeywordsAccess","common\\sources\\read\\praisekeywords\\IPraiseKeywordsAccess");
Yii::$container->set("common\\sources\\read\\praisekeywords\\IPraiseKeywordsAccess","common\\sources\\read\\praisekeywords\\PraiseKeywordsAccess");

Yii::$container->set("WPraiseKeywordsAccess","common\\sources\\write\\praisekeywords\\IPraiseKeywordsAccess");
Yii::$container->set("common\\sources\\write\\praisekeywords\\IPraiseKeywordsAccess","common\\sources\\write\\praisekeywords\\PraiseKeywordsAccess");

/** 花椒记录 ****/
Yii::$container->set("PepperRecordService","common\\logics\\pepperrecord\\IPepperRecord");
Yii::$container->set("common\\logics\\pepperrecord\\IPepperRecord","common\\logics\\pepperrecord\\PepperRecordLogic");

Yii::$container->set("RPepperRecordAccess","common\\sources\\read\\pepperrecord\\IPepperRecordAccess");
Yii::$container->set("common\\sources\\read\\pepperrecord\\IPepperRecordAccess","common\\sources\\read\\pepperrecord\\PepperRecordAccess");

Yii::$container->set("WPepperRecordAccess","common\\sources\\write\\pepperrecord\\IPepperRecordAccess");
Yii::$container->set("common\\sources\\write\\pepperrecord\\IPepperRecordAccess","common\\sources\\write\\pepperrecord\\PepperRecordAccess");

/** 完成任务记录 ***/
Yii::$container->set("TaskOrderRecordService","common\\logics\\taskorderrecord\\ITaskOrderRecord");
Yii::$container->set("common\\logics\\taskorderrecord\\ITaskOrderRecord","common\\logics\\taskorderrecord\\TaskOrderRecordLogic");

/** 本金提现记录 ***/
Yii::$container->set("PrincipalCashService","common\\logics\\principalcash\\IPrincipalCash");
Yii::$container->set("common\\logics\\principalcash\\IPrincipalCash","common\\logics\\principalcash\\PrincipalCashLogic");

Yii::$container->set("RPrincipalCashAccess","common\\sources\\read\\principalcash\\IPrincipalCashAccess");
Yii::$container->set("common\\sources\\read\\principalcash\\IPrincipalCashAccess","common\\sources\\read\\principalcash\\PrincipalCashAccess");

Yii::$container->set("WPrincipalCashAccess","common\\sources\\write\\principalcash\\IPrincipalCashAccess");
Yii::$container->set("common\\sources\\write\\principalcash\\IPrincipalCashAccess","common\\sources\\write\\principalcash\\PrincipalCashAccess");


/** 花椒提现记录**/
Yii::$container->set("PepperCashService","common\\logics\\peppercash\\IPepperCash");
Yii::$container->set("common\\logics\\peppercash\\IPepperCash","common\\logics\\peppercash\\PepperCashLogic");

Yii::$container->set("RPepperCashAccess","common\\sources\\read\\peppercash\\IPepperCashAccess");
Yii::$container->set("common\\sources\\read\\peppercash\\IPepperCashAccess","common\\sources\\read\\peppercash\\PepperCashAccess");

Yii::$container->set("WPepperCashAccess","common\\sources\\write\\peppercash\\IPepperCashAccess");
Yii::$container->set("common\\sources\\write\\peppercash\\IPepperCashAccess","common\\sources\\write\\peppercash\\PepperCashAccess");

/*** 买手本金记录 ***/
Yii::$container->set("RDepositRecordAccess","common\\sources\\read\\depositrecord\\IDepositRecordAccess");
Yii::$container->set("common\\sources\\read\\depositrecord\\IDepositRecordAccess","common\\sources\\read\\depositrecord\\DepositRecordAccess");

Yii::$container->set("WDepositRecordAccess","common\\sources\\write\\depositrecord\\IDepositRecordAccess");
Yii::$container->set("common\\sources\\write\\depositrecord\\IDepositRecordAccess","common\\sources\\write\\depositrecord\\DepositRecordAccess");

/** 花椒获取记录**/
Yii::$container->set("RPepperRecordAccess","common\\sources\\read\\pepperrecord\\IPepperRecordAccess");
Yii::$container->set("common\\sources\\read\\pepperrecord\\IPepperRecordAccess","common\\sources\\read\\pepperrecord\\PepperRecordAccess");

Yii::$container->set("WPepperRecordAccess","common\\sources\\write\\pepperrecord\\IPepperRecordAccess");
Yii::$container->set("common\\sources\\write\\pepperrecord\\IPepperRecordAccess","common\\sources\\write\\pepperrecord\\PepperRecordAccess");

/** 商家端本金退还 和押金退还 **/
Yii::$container->set("RBusDepositRecordAccess","common\\sources\\read\\busdepositrecord\\IBusDepositRecordAccess");
Yii::$container->set("common\\sources\\read\\busdepositrecord\\IBusDepositRecordAccess","common\\sources\\read\\busdepositrecord\\BusDepositRecordAccess");

Yii::$container->set("WBusDepositRecordAccess","common\\sources\\write\\busdepositrecord\\IBusDepositRecordAccess");
Yii::$container->set("common\\sources\\write\\busdepositrecord\\IBusDepositRecordAccess","common\\sources\\write\\busdepositrecord\\BusDepositRecordAccess");

/** 商家账号信息 修改***/
Yii::$container->set("RBusinessAccountAccess","common\\sources\\read\\businessaccount\\IBusinessAccountAccess");
Yii::$container->set("common\\sources\\read\\businessaccount\\IBusinessAccountAccess","common\\sources\\read\\businessaccount\\BusinessAccountAccess");

Yii::$container->set("WBusinessAccountAccess","common\\sources\\write\\businessaccount\\IBusinessAccountAccess");
Yii::$container->set("common\\sources\\write\\businessaccount\\IBusinessAccountAccess","common\\sources\\write\\businessaccount\\BusinessAccountAccess");

/** 买手任务花椒记录***/
Yii::$container->set("WTaskPepperRecordAccess","common\\sources\\write\\taskpepperrecord\\ITaskPepperRecordAccess");
Yii::$container->set("common\\sources\\write\\taskpepperrecord\\ITaskPepperRecordAccess","common\\sources\\write\\taskpepperrecord\\TaskPepperRecordAccess");

//快钱支付
Yii::$container->set("KqPayService","common\\logics\\kq\\IKqPay");
Yii::$container->set("common\\logics\\kq\\IKqPay","common\\logics\\kq\\KqPayLogic");

/** 买手充值记录 ***/
Yii::$container->set("RBuyRechargeRecordAccess","common\\sources\\read\\buyrechargerecord\\IBuyRechargeRecordAccess");
Yii::$container->set("common\\sources\\read\\buyrechargerecord\\IBuyRechargeRecordAccess","common\\sources\\read\\buyrechargerecord\\BuyRechargeRecordAccess");

Yii::$container->set("WBuyRechargeRecordAccess","common\\sources\\write\\buyrechargerecord\\IBuyRechargeRecordAccess");
Yii::$container->set("common\\sources\\write\\buyrechargerecord\\IBuyRechargeRecordAccess","common\\sources\\write\\buyrechargerecord\\BuyRechargeRecordAccess");

/** 子任务订单状态记录***/
Yii::$container->set("RBuyTaskOrderLogAccess","common\\sources\\read\\taskorderlog\\IBuyTaskOrderLogAccess");
Yii::$container->set("common\\sources\\read\\taskorderlog\\IBuyTaskOrderLogAccess","common\\sources\\read\\taskorderlog\\BuyTaskOrderLogAccess");

Yii::$container->set("WBuyTaskOrderLogAccess","common\\sources\\write\\taskorderlog\\IBuyTaskOrderLogAccess");
Yii::$container->set("common\\sources\\write\\taskorderlog\\IBuyTaskOrderLogAccess","common\\sources\\write\\taskorderlog\\BuyTaskOrderLogAccess");

/** classifyreason **/
Yii::$container->set("RClassifyReasonAccess","common\\sources\\read\\classifyreason\\IClassifyReasonAccess");
Yii::$container->set("common\\sources\\read\\classifyreason\\IClassifyReasonAccess","common\\sources\\read\\classifyreason\\ClassifyReasonAccess");

Yii::$container->set("WBusPepperRecordAccess","common\\sources\\write\\buspepperrecord\\IBusPepperRecordAccess");
Yii::$container->set("common\\sources\\write\\buspepperrecord\\IBusPepperRecordAccess","common\\sources\\write\\buspepperrecord\\BusPepperRecordAccess");

/** 我的邀请 **/
Yii::$container->set("MyInvitateService","common\\logics\\myinvitate\\IMyInvitate");
Yii::$container->set("common\\logics\\myinvitate\\IMyInvitate","common\\logics\\myinvitate\\MyInviteLogic");

